const express = require("express")
const route = express.Router()
// 引入数据库集合对象
const adminModel = require("../db/model/adminModel")

// 引入权限校验中间件
const isLoginMiddle = require("../middleware/isLoginMiddle")

// 写接口是为了使用isLoginMiddle权限验证中间件`
route.get("/islogin", isLoginMiddle, async (req, res) => {
  res.send({
    code: 10000,
    msg: "ok",
    data: null
  })
})

module.exports = route